package com.springcloud.sc.ucpv5.client.commondata.idl.sj3;


/**
 * Generated from IDL struct "Node".
 *
 * @author JacORB IDL compiler V 2.3-beta-2, 14-Oct-2006
 * @version generated at 2014-10-29 11:48:54
 */

public final class NodeHelper
{
	private static org.omg.CORBA.TypeCode _type = null;
	public static org.omg.CORBA.TypeCode type ()
	{
		if (_type == null)
		{
			_type = org.omg.CORBA.ORB.init().create_struct_tc(com.springcloud.sc.ucpv5.client.commondata.idl.sj3.NodeHelper.id(),"Node",new org.omg.CORBA.StructMember[]{new org.omg.CORBA.StructMember("NodeNumber", org.omg.CORBA.ORB.init().create_string_tc(0), null),new org.omg.CORBA.StructMember("ParentNumber", org.omg.CORBA.ORB.init().create_string_tc(0), null),new org.omg.CORBA.StructMember("NodeName", org.omg.CORBA.ORB.init().create_string_tc(0), null),new org.omg.CORBA.StructMember("NodeType", org.omg.CORBA.ORB.init().get_primitive_tc(org.omg.CORBA.TCKind.from_int(3)), null),new org.omg.CORBA.StructMember("NodeIP", org.omg.CORBA.ORB.init().create_string_tc(0), null),new org.omg.CORBA.StructMember("Point_x", org.omg.CORBA.ORB.init().get_primitive_tc(org.omg.CORBA.TCKind.from_int(3)), null),new org.omg.CORBA.StructMember("Point_y", org.omg.CORBA.ORB.init().get_primitive_tc(org.omg.CORBA.TCKind.from_int(3)), null),new org.omg.CORBA.StructMember("Background", org.omg.CORBA.ORB.init().create_string_tc(0), null),new org.omg.CORBA.StructMember("Background1", org.omg.CORBA.ORB.init().create_string_tc(0), null),new org.omg.CORBA.StructMember("Local_Point_x", org.omg.CORBA.ORB.init().get_primitive_tc(org.omg.CORBA.TCKind.from_int(3)), null),new org.omg.CORBA.StructMember("Local_Point_y", org.omg.CORBA.ORB.init().get_primitive_tc(org.omg.CORBA.TCKind.from_int(3)), null),new org.omg.CORBA.StructMember("IS_VIRTURL", org.omg.CORBA.ORB.init().get_primitive_tc(org.omg.CORBA.TCKind.from_int(3)), null),new org.omg.CORBA.StructMember("Physics_NodeNumber", org.omg.CORBA.ORB.init().create_string_tc(0), null),new org.omg.CORBA.StructMember("longitude", org.omg.CORBA.ORB.init().create_string_tc(0), null),new org.omg.CORBA.StructMember("latitude", org.omg.CORBA.ORB.init().create_string_tc(0), null),new org.omg.CORBA.StructMember("zoom", org.omg.CORBA.ORB.init().create_string_tc(0), null)});
		}
		return _type;
	}

	public static void insert (final org.omg.CORBA.Any any, final com.springcloud.sc.ucpv5.client.commondata.idl.sj3.Node s)
	{
		any.type(type());
		write( any.create_output_stream(),s);
	}

	public static com.springcloud.sc.ucpv5.client.commondata.idl.sj3.Node extract (final org.omg.CORBA.Any any)
	{
		return read(any.create_input_stream());
	}

	public static String id()
	{
		return "IDL:com/client/idl/sj3/Node:1.0";
	}
	public static com.springcloud.sc.ucpv5.client.commondata.idl.sj3.Node read (final org.omg.CORBA.portable.InputStream in)
	{
		com.springcloud.sc.ucpv5.client.commondata.idl.sj3.Node result = new com.springcloud.sc.ucpv5.client.commondata.idl.sj3.Node();
		result.NodeNumber=in.read_string();
		result.ParentNumber=in.read_string();
		result.NodeName=in.read_string();
		result.NodeType=in.read_long();
		result.NodeIP=in.read_string();
		result.Point_x=in.read_long();
		result.Point_y=in.read_long();
		result.Background=in.read_string();
		result.Background1=in.read_string();
		result.Local_Point_x=in.read_long();
		result.Local_Point_y=in.read_long();
		result.IS_VIRTURL=in.read_long();
		result.Physics_NodeNumber=in.read_string();
		result.longitude=in.read_string();
		result.latitude=in.read_string();
		result.zoom=in.read_string();
		return result;
	}
	public static void write (final org.omg.CORBA.portable.OutputStream out, final com.springcloud.sc.ucpv5.client.commondata.idl.sj3.Node s)
	{
		out.write_string(s.NodeNumber);
		out.write_string(s.ParentNumber);
		out.write_string(s.NodeName);
		out.write_long(s.NodeType);
		out.write_string(s.NodeIP);
		out.write_long(s.Point_x);
		out.write_long(s.Point_y);
		out.write_string(s.Background);
		out.write_string(s.Background1);
		out.write_long(s.Local_Point_x);
		out.write_long(s.Local_Point_y);
		out.write_long(s.IS_VIRTURL);
		out.write_string(s.Physics_NodeNumber);
		out.write_string(s.longitude);
		out.write_string(s.latitude);
		out.write_string(s.zoom);
	}
}
